<html>
<head><meta charset="utf-8"><title>macOS cross-compiling on the DTK · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20cross-compiling.20on.20the.20DTK.html">macOS cross-compiling on the DTK</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204844248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20cross-compiling%20on%20the%20DTK/near/204844248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20cross-compiling.20on.20the.20DTK.html#204844248">(Jul 23 2020 at 19:37)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> I'm trying to cross-compile using the x86_64 compiler <em>to</em> aarch64 <strong>on</strong> aarch64 (if that isn't confusing...)</p>
<p>It's been able to build bootstrap (as a x86_64 binary, as I would expect), but then fails when trying to get the lib directory. The error makes sense, as the snapshot compiler <em>doesn't</em> know about aarch64 yet. However, I'm confused why this would be happening only on the DTK. I'm running the same command on x86_64 where it <em>also</em> doesn't know about it yet.</p>
<div class="codehilite"><pre><span></span><code>running: /Users/shepmaster/Projects/rust/silicon/cross/build/bootstrap/debug/bootstrap install -i --stage 1 --host ../aarch64-apple-darwin.json --target aarch64-apple-darwin,x86_64-apple-darwin src/librustc src/libstd --verbose
&lt;jemalloc&gt;: Unsupported system page size
error: Error loading target specification: Could not find specification for target &quot;aarch64-apple-darwin&quot;. Use `--print target-list` for a list of built-in targets

thread &#39;main&#39; panicked at &#39;command did not execute successfully: &quot;/Users/shepmaster/Projects/rust/silicon/cross/rust-beta-x86_64-apple-darwin/rustc/bin/rustc&quot; &quot;--target&quot; &quot;aarch64-apple-darwin&quot; &quot;--print&quot; &quot;target-libdir&quot;
</code></pre></div>



<a name="204844381"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20cross-compiling%20on%20the%20DTK/near/204844381" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20cross-compiling.20on.20the.20DTK.html#204844381">(Jul 23 2020 at 19:39)</a>:</h4>
<p>Does --print target-list match up on both?</p>



<a name="204844778"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20cross-compiling%20on%20the%20DTK/near/204844778" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20cross-compiling.20on.20the.20DTK.html#204844778">(Jul 23 2020 at 19:42)</a>:</h4>
<p>Looks like it:</p>
<p>x86_64:</p>
<div class="codehilite"><pre><span></span><code>cross % ./build/x86_64-apple-darwin//stage0/bin/rustc --print target-list | md5
c4ccedf6c1c78890df116ddfebe3922b
</code></pre></div>


<p>aarch64:</p>
<div class="codehilite"><pre><span></span><code>cross % ./rust-beta-x86_64-apple-darwin/rustc/bin/rustc --print target-list | md5
&lt;jemalloc&gt;: Unsupported system page size
c4ccedf6c1c78890df116ddfebe3922b
</code></pre></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>